﻿/****************************** Module Header ******************************\
 * Module Name:  tGeneralServer.cs
 * Module Version:  1.0.0 (2013-01-25)
 * Copyright (c) AnyEB.Com (14507247@qq.com)
 * 
 * This source is subject to the GPL License.
 * See http://www.gnu.org/licenses/gpl.html.
 * All other rights reserved.
 * 
 * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, 
 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED 
 * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
\***************************************************************************/

using System;

namespace UCL.Data.ORM.UMD
{
	/// <summary>
    /// 通用-服务配置 数据实体类
	/// </summary>
	[DBTable(Common="tGeneralServer")]
	public class tGeneralServer
	{
		/// <summary>
		/// Guid编号
		/// </summary>
		public Guid ID { get { return _ID ?? default(Guid); } set { _ID = value; } }

        [DBColumn(Alias = "Guid编号", IsKey = true, DefaultValue = "newid()")]
		private Guid? _ID;

		/// <summary>
        /// 提供商名称
		/// </summary>
		public string Provider { get { return _Provider; } set { _Provider = value; } }

        [DBColumn(Alias = "提供商名称", CanBeNull = true, Length = "32")]
		private string _Provider;

		/// <summary>
        /// 登录帐号
		/// </summary>
		public string LoginID { get { return _LoginID; } set { _LoginID = value; } }

        [DBColumn(Alias = "登录帐号", Length = "32")]
		private string _LoginID;

		/// <summary>
        /// 别名
		/// </summary>
		public string Alias { get { return _Alias; } set { _Alias = value; } }

        [DBColumn(Alias = "别名", CanBeNull = true, Length = "32")]
		private string _Alias;

		/// <summary>
        /// 登录密码
		/// </summary>
		public string Password { get { return _Password; } set { _Password = value; } }

        [DBColumn(Alias = "登录密码", Length = "128")]
		private string _Password;

		/// <summary>
        /// 服务接口地址
		/// </summary>
		public string ServiceURI { get { return _ServiceURI; } set { _ServiceURI = value; } }

        [DBColumn(Alias = "服务接口地址", CanBeNull = true, Length = "255")]
		private string _ServiceURI;

		/// <summary>
        /// 端口号
		/// </summary>
		public int Port { get { return _Port ?? default(int); } set { _Port = value; } }

        [DBColumn(Alias = "端口号", CanBeNull = true)]
		private int? _Port;

		/// <summary>
        /// 使用次数
		/// </summary>
		public int LimitCount { get { return _LimitCount ?? default(int); } set { _LimitCount = value; } }

        [DBColumn(Alias = "使用次数")]
		private int? _LimitCount;

		/// <summary>
        /// 过期时间
		/// </summary>
		public DateTime ExpireTime { get { return _ExpireTime ?? default(DateTime); } set { _ExpireTime = value; } }

        [DBColumn(Alias = "过期时间", CanBeNull = true)]
		private DateTime? _ExpireTime;

		/// <summary>
		/// 扩展标签
		/// </summary>
		public string ExTags { get { return _ExTags; } set { _ExTags = value; } }

		[DBColumn(Alias="扩展标签", Length="16")]
		private string _ExTags;

		/// <summary>
		/// 排列次序
		/// </summary>
		public short Ordinal { get { return _Ordinal ?? default(short); } set { _Ordinal = value; } }

		[DBColumn(Alias="排列次序", DefaultValue="999")]
		private short? _Ordinal;

		/// <summary>
		/// 状态
		/// </summary>
		public short State { get { return _State ?? default(short); } set { _State = value; } }

		[DBColumn(Alias="状态", DefaultValue="0")]
		private short? _State;

		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime CreatedTime { get { return _CreatedTime ?? default(DateTime); } set { _CreatedTime = value; } }

		[DBColumn(Alias="创建时间", DefaultValue="getdate()")]
		private DateTime? _CreatedTime;

		/// <summary>
		/// 最后更新时间
		/// </summary>
		public DateTime ModifiedDate { get { return _ModifiedDate ?? default(DateTime); } set { _ModifiedDate = value; } }

		[DBColumn(Alias="最后更新时间", CanBeNull=true)]
		private DateTime? _ModifiedDate;

		/// <summary>
		/// 是否删除
		/// </summary>
		public bool IsDeleted { get { return _IsDeleted ?? default(bool); } set { _IsDeleted = value; } }

		[DBColumn(Alias="是否删除", DefaultValue="0")]
		private bool? _IsDeleted;

		/// <summary>
		/// 网站标签
		/// </summary>
		public string SiteTag { get { return _SiteTag; } set { _SiteTag = value; } }

		[DBColumn(Alias="网站标签", CanBeNull=true, Length="16")]
		private string _SiteTag;

	}
}
